package com.newbie.pet.service;

import com.newbie.pet.model.BaseEntity;
import com.newbie.pet.wrap.DPage;
import com.newbie.pet.wrap.P;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * 类描述：
 *
 * @author zhangkailiang
 * @date 2020/5/16
 */
public interface BaseService<D extends JpaRepository, E extends BaseEntity, ID> {

    E save(E e);

    E findOneById(ID id);

    Boolean deleteById(ID id);

    DPage<E> findPage(P<E> p);

    Boolean updateById(E e);
}
